Optimal. Leaf size=53 \[ -\frac {2 A}{3 a x^{3/2}}-\frac {2 (A b-a B) \tan ^{-1}\left (\frac {\sqrt {b} x^{3/2}}{\sqrt {a}}\right )}{3 a^{3/2} \sqrt {b}} \]
[Out]
________________________________________________________________________________________
Rubi [A]
time = 0.03, antiderivative size = 53, normalized size of antiderivative = 1.00, number of steps
used = 4, number of rules used = 4, integrand size = 22, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.182, Rules used = {464, 335, 281,
211} \begin {gather*} -\frac {2 (A b-a B) \text {ArcTan}\left (\frac {\sqrt {b} x^{3/2}}{\sqrt {a}}\right )}{3 a^{3/2} \sqrt {b}}-\frac {2 A}{3 a x^{3/2}} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 211
Rule 281
Rule 335
Rule 464
Rubi steps
\begin {align*} \int \frac {A+B x^3}{x^{5/2} \left (a+b x^3\right )} \, dx &=-\frac {2 A}{3 a x^{3/2}}-\frac {\left (2 \left (\frac {3 A b}{2}-\frac {3 a B}{2}\right )\right ) \int \frac {\sqrt {x}}{a+b x^3} \, dx}{3 a}\\ &=-\frac {2 A}{3 a x^{3/2}}-\frac {\left (4 \left (\frac {3 A b}{2}-\frac {3 a B}{2}\right )\right ) \text {Subst}\left (\int \frac {x^2}{a+b x^6} \, dx,x,\sqrt {x}\right )}{3 a}\\ &=-\frac {2 A}{3 a x^{3/2}}-\frac {(2 (A b-a B)) \text {Subst}\left (\int \frac {1}{a+b x^2} \, dx,x,x^{3/2}\right )}{3 a}\\ &=-\frac {2 A}{3 a x^{3/2}}-\frac {2 (A b-a B) \tan ^{-1}\left (\frac {\sqrt {b} x^{3/2}}{\sqrt {a}}\right )}{3 a^{3/2} \sqrt {b}}\\ \end {align*}
________________________________________________________________________________________
Mathematica [A]
time = 0.05, size = 53, normalized size = 1.00 \begin {gather*} -\frac {2 A}{3 a x^{3/2}}+\frac {2 (-A b+a B) \tan ^{-1}\left (\frac {\sqrt {b} x^{3/2}}{\sqrt {a}}\right )}{3 a^{3/2} \sqrt {b}} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [A]
time = 0.31, size = 40, normalized size = 0.75
method | result | size |
derivativedivides | \(-\frac {2 A}{3 a \,x^{\frac {3}{2}}}-\frac {2 \left (A b -B a \right ) \arctan \left (\frac {b \,x^{\frac {3}{2}}}{\sqrt {a b}}\right )}{3 a \sqrt {a b}}\) | \(40\) |
default | \(-\frac {2 A}{3 a \,x^{\frac {3}{2}}}-\frac {2 \left (A b -B a \right ) \arctan \left (\frac {b \,x^{\frac {3}{2}}}{\sqrt {a b}}\right )}{3 a \sqrt {a b}}\) | \(40\) |
risch | \(-\frac {2 A}{3 a \,x^{\frac {3}{2}}}-\frac {2 \arctan \left (\frac {b \,x^{\frac {3}{2}}}{\sqrt {a b}}\right ) A b}{3 a \sqrt {a b}}+\frac {2 \arctan \left (\frac {b \,x^{\frac {3}{2}}}{\sqrt {a b}}\right ) B}{3 \sqrt {a b}}\) | \(53\) |
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [A]
time = 0.53, size = 39, normalized size = 0.74 \begin {gather*} \frac {2 \, {\left (B a - A b\right )} \arctan \left (\frac {b x^{\frac {3}{2}}}{\sqrt {a b}}\right )}{3 \, \sqrt {a b} a} - \frac {2 \, A}{3 \, a x^{\frac {3}{2}}} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [A]
time = 1.87, size = 120, normalized size = 2.26 \begin {gather*} \left [\frac {{\left (B a - A b\right )} \sqrt {-a b} x^{2} \log \left (\frac {b x^{3} + 2 \, \sqrt {-a b} x^{\frac {3}{2}} - a}{b x^{3} + a}\right ) - 2 \, A a b \sqrt {x}}{3 \, a^{2} b x^{2}}, \frac {2 \, {\left ({\left (B a - A b\right )} \sqrt {a b} x^{2} \arctan \left (\frac {\sqrt {a b} x^{\frac {3}{2}}}{a}\right ) - A a b \sqrt {x}\right )}}{3 \, a^{2} b x^{2}}\right ] \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [B] Leaf count of result is larger than twice the leaf count of optimal. 371 vs.
\(2 (53) = 106\).
time = 20.93, size = 371, normalized size = 7.00 \begin {gather*} \begin {cases} \tilde {\infty } \left (- \frac {2 A}{9 x^{\frac {9}{2}}} - \frac {2 B}{3 x^{\frac {3}{2}}}\right ) & \text {for}\: a = 0 \wedge b = 0 \\\frac {- \frac {2 A}{9 x^{\frac {9}{2}}} - \frac {2 B}{3 x^{\frac {3}{2}}}}{b} & \text {for}\: a = 0 \\\frac {- \frac {2 A}{3 x^{\frac {3}{2}}} + \frac {2 B x^{\frac {3}{2}}}{3}}{a} & \text {for}\: b = 0 \\- \frac {A \log {\left (\sqrt {x} - \sqrt [6]{- \frac {a}{b}} \right )}}{3 a \sqrt {- \frac {a}{b}}} + \frac {A \log {\left (\sqrt {x} + \sqrt [6]{- \frac {a}{b}} \right )}}{3 a \sqrt {- \frac {a}{b}}} + \frac {A \log {\left (- 4 \sqrt {x} \sqrt [6]{- \frac {a}{b}} + 4 x + 4 \sqrt [3]{- \frac {a}{b}} \right )}}{3 a \sqrt {- \frac {a}{b}}} - \frac {A \log {\left (4 \sqrt {x} \sqrt [6]{- \frac {a}{b}} + 4 x + 4 \sqrt [3]{- \frac {a}{b}} \right )}}{3 a \sqrt {- \frac {a}{b}}} - \frac {2 A}{3 a x^{\frac {3}{2}}} + \frac {B \log {\left (\sqrt {x} - \sqrt [6]{- \frac {a}{b}} \right )}}{3 b \sqrt {- \frac {a}{b}}} - \frac {B \log {\left (\sqrt {x} + \sqrt [6]{- \frac {a}{b}} \right )}}{3 b \sqrt {- \frac {a}{b}}} - \frac {B \log {\left (- 4 \sqrt {x} \sqrt [6]{- \frac {a}{b}} + 4 x + 4 \sqrt [3]{- \frac {a}{b}} \right )}}{3 b \sqrt {- \frac {a}{b}}} + \frac {B \log {\left (4 \sqrt {x} \sqrt [6]{- \frac {a}{b}} + 4 x + 4 \sqrt [3]{- \frac {a}{b}} \right )}}{3 b \sqrt {- \frac {a}{b}}} & \text {otherwise} \end {cases} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [A]
time = 0.57, size = 39, normalized size = 0.74 \begin {gather*} \frac {2 \, {\left (B a - A b\right )} \arctan \left (\frac {b x^{\frac {3}{2}}}{\sqrt {a b}}\right )}{3 \, \sqrt {a b} a} - \frac {2 \, A}{3 \, a x^{\frac {3}{2}}} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Mupad [B]
time = 0.10, size = 102, normalized size = 1.92 \begin {gather*} -\frac {2\,A}{3\,a\,x^{3/2}}-\frac {2\,\mathrm {atan}\left (\frac {3\,a^{3/2}\,\sqrt {b}\,x^{3/2}\,\left (24\,A^2\,a^3\,b^5-48\,A\,B\,a^4\,b^4+24\,B^2\,a^5\,b^3\right )}{\left (A\,b-B\,a\right )\,\left (72\,A\,a^5\,b^4-72\,B\,a^6\,b^3\right )}\right )\,\left (A\,b-B\,a\right )}{3\,a^{3/2}\,\sqrt {b}} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________